package com.haoting.mamba.ucenter.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.haoting.common.utils.PageUtils;
import com.haoting.common.utils.Query;

import com.haoting.mamba.ucenter.dao.UserCollectionsDao;
import com.haoting.mamba.ucenter.entity.UserCollectionsEntity;
import com.haoting.mamba.ucenter.service.UserCollectionsService;


@Service("userCollectionsService")
public class UserCollectionsServiceImpl extends ServiceImpl<UserCollectionsDao, UserCollectionsEntity> implements UserCollectionsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserCollectionsEntity> page = this.page(
                new Query<UserCollectionsEntity>().getPage(params),
                new QueryWrapper<UserCollectionsEntity>()
        );

        return new PageUtils(page);
    }

}